package com.micro.ai.gateway.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * 应用配置
 * 
 * @author micro-ai
 * @since 0.0.1
 */
@Configuration
@ConfigurationProperties(prefix = "jwt")
public class ApplicationConfig {

    private String secret = "micro-ai-gateway-secret-key-2024";
    private Long expiration = 86400L;

    public String getSecret() {
        return secret;
    }

    public void setSecret(String secret) {
        this.secret = secret;
    }

    public Long getExpiration() {
        return expiration;
    }

    public void setExpiration(Long expiration) {
        this.expiration = expiration;
    }
}
